<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登陆页面</title>
</head>
<body>

<%
    //取项目名
    String pathName = request.getContextPath();
    //取完整Http根目录地址
    String allPath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + pathName;
%>
<form id="loginFom" action="<%=allPath %>/login" style="text-align: center">
    <label>用户名：</label>
    <input id="name" name="name" type="text"><br>

    <label>密码：</label>
    <input id="password" name="password" type="password"><br>

    <input type="submit" value="提交">
</form>

</body>
</html>
